package work1.work2.tv;

public class TCL extends TV {

    private boolean cloud;
    TCL(){

    }
    void TCL(String brand,double size,boolean cloud){
        this.brand=brand;
        this.size=size;
        this.cloud=cloud;
    }
    @Override
    void output(){
        if (cloud==true){
            System.out.println(brand+" "+size+" "+"是云电视");
        }
        else {
            super.output();
        }
    }

}
